package cn.seaboot.admin.starter.converter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 对象类型转换
 *
 * @author Mr.css
 * @version 2020-07-27 10:32
 */
@Component
@ConfigurationProperties(prefix = "boot-converter")
public class ConverterProperties {
    /**
     * 日期格式转换
     */
    private String timeType = "java.time";
    /**
     * 是否采用科学记数法
     */
    private boolean scientificNotation;

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    public boolean isScientificNotation() {
        return scientificNotation;
    }

    public void setScientificNotation(boolean scientificNotation) {
        this.scientificNotation = scientificNotation;
    }
}

